import request from '@/utils/request';

export function queryUserList(params) {
  return request({
    url: '/queryUserList',
    method: 'get',
    params: params
  })
}

export function addUser(data) {
  return request({
    url: '/addUser',
    method: 'post',
    data: data
  })
}

export function deleteUser(params) {
  return request({
    url: '/deleteUser',
    method: 'delete',
    params: params
  })
}

export function updateUser(data) {
  return request({
    url: '/updateUser',
    method: 'post',
    data: data
  })
}

export function queryOneUser(params) {
  return request({
    url: '/queryOneUser',
    method: 'get',
    params: params
  })
}

export function updateUserPwd(params) {
  return request({
    url: '/updateUserPwd',
    method: 'get',
    params: params
  })
}